<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>left</title>
<link type="text/css" rel="stylesheet" href="${css_ctx }/main_style.css" />
<script type="text/javascript">
	function learnReady(){ 
		var objBranch = document.getElementById("learnready").style;
		if (objBranch.display=="block") {
			objBranch.display="none"; 
		} else {
			objBranch.display="block"; 
		}
	}	
</script>
</head>

<body class="left_bg" >
<div class="left_top">
	<form name="form2" id="form2">
		<select name="cwd" >
	    	<option>承德车务段</option>
	    </select>
	    &nbsp;
	    <select name="station" onchange="MM_jumpMenu('parent',this,1)">
	    	<option value="${sessionScope.mtrain.tid }" >${sessionScope.mtrain.tname}</option>
	    </select>
	</form>
	    
</div><!--top-->
<div class="list_nav">
	<div class="learn_tittle">你应该学习的规章制度</div>
  <ul class="learn_list">
   <c:forEach items="${rulelist}" var="rule" varStatus="status">
      <li><a href="${ctx }/common?cmd=reader&rid=${rule.rid}&tid=${number}" target="mainFrame">[${status.count}] ${rule.rname}</a></li>
   </c:forEach>
  </ul><br />
  <div class="learn_tittle"><a href="#" onmousedown="learnReady()">本组已学习过的规章制度</a></div>
  <div style="color: #00A260; padding-left: 10px;">点击上面标题可查看</div>
  <ul class="learn_list" id="learnready" style="display: none;">
   <c:forEach items="${rulelistready}" var="rule" varStatus="status">
      <li><a href="${ctx }/common?cmd=reader&rid=${rule.rid}&tid=${number}" target="mainFrame">[${status.count}] ${rule.rname}</a></li>
   </c:forEach>
  </ul>
</div>
<script type="text/javascript"> 
<!--
var Borderpx = 201;
  /*下面为在浏览器中写出左右两个浮动窗口显示的内容*/
document.writeln("<div id=\"kuaiguan\" >");
document.writeln("<a href=\"#\" onmousedown=\"showLeft() \"><img src=\"${img_ctx }/kuaiguan.gif\" width=\"9\" height=\"22\" /><\/a>");
document.writeln("<\/div>");
function scall(){  //scale() 方法保存当前图像状态的一份拷贝
	document.getElementById("kuaiguan").style.left=document.documentElement.scrollLeft + Borderpx;
}
function showLeft(){ 

	if(window.parent.bottom.cols == '9,* '){
		window.parent.bottom.cols= '210,* ';
		Borderpx = 201;
	} else {
		window.parent.bottom.cols= '9,* ';
		Borderpx = 0;
	}
} 
window.setInterval("scall()", 100);
//-->
</script>
</body>
</html>
